# name: Odoo Compute Field
# key: odoo_field_compute
# --
$1 = fields.$2(
    string="Compute Field Name", 
    compute='_compute_$1',
    inverse='_inverse_$1',
    search='_search_$1'
)


@api.one
@api.depends('$3', ...)
def _compute_$1(self):
    self.$1 = value

@api.one
def _inverse_$1(self):
    self.$3 = value


def _search_$1(self, operator, value):
    if operator == 'like':
        operator = 'ilike'
    return [('name', operator, value)]
